home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Audio & Music / StartupSoundPrefPane 1.0.3.dmg / StartupSoundPrefPane.pkg / Contents / Resources / postflight < prev    next >
Encoding:
Paul Falstad's zsh script  |  2005-05-28  |  538 b   |  25 lines

  1. #!/bin/zsh
  2.  
  3. KEXT_DIR="/System/Library/Extensions"
  4. KEXT_NAME="ArcanaPRAM.kext"
  5. KEXT_PATH="${KEXT_DIR}/${KEXT_NAME}"
  6. PLIST_DIR="/Library/Preferences"
  7. PLIST_NAME="arcana.StartupSound.plist"
  8. PLIST_PATH="${PLIST_DIR}/${PLIST_NAME}"
  9.  
  10. touch "${KEXT_DIR}"
  11. touch /Library/PreferencePanes
  12.  
  13. kextunload "${KEXT_PATH}"
  14.  
  15. if [ ! -e "${PLIST_PATH}" ]; then
  16.     cp "${PACKAGE_PATH}/Contents/Resources/${PLIST_NAME}" "${PLIST_DIR}"
  17.     chmod 644 "${PLIST_PATH}"
  18. fi
  19.  
  20. kextload "${KEXT_PATH}"
  21.  
  22. /Library/StartupItems/ArcanaStartupSound/Resources/bootbeep -p
  23.  
  24. exit 0
  25.